package com.open.capacity.finance.dao;

import com.open.capacity.finance.entity.SourceBaseUsecar;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 公务用车登记表
 *
 * @author
 * @email
 * @date 2023-02-09 18:13:25
 */
@Mapper
public interface SourceBaseUsecarDao {

    int save(SourceBaseUsecar sourceBaseUsecar);

    int deleteByCompanyId(@Param("companyId") String companyId);

    SourceBaseUsecar findById(String id);

    List<SourceBaseUsecar> findAll(Map<String, Object> params);

    List<SourceBaseUsecar> findDepartmentData(Map<String, Object> params);

    List<SourceBaseUsecar> findMonthData(Map<String, Object> params);

    List<String> findCarNumber(Map<String, Object> params);
}
